import request from '../utils/request';

// 登录
export function login(data) {
    return request({
        url: '/sysUser/login',
        method: 'post',
        data: data
    });
}
// 登出
export function logout() {
    return request({
        url: '/sysUser/logout',
        method: 'post',
    });
}
// 获取用户菜单
export function getMenu() {
    return request({
        url: '/sysUser/getMenu',
        method: 'post',
    });
}

// 获取用户菜单
export function loginInfo() {
    return request({
        url: '/sysUser/loginInfo',
        method: 'post',
    });
}